<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/3/25 0025
  Time: 下午 2:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>进行除法运算的jsp</title>
</head>
<body>
<center>
    <h1>
        <%
            try{
                float divident= Float.parseFloat(request.getParameter("v1"));
                float divisor= Float.parseFloat(request.getParameter("v2"));
                double result= divident/divisor;
        %>
        <%=result%>
        <%
            }catch(Exception e){
                out.println("不合法的除数或 被除数");
            }
        %>
    </h1>
</center>
</body>
</html>
